﻿@using JT.Domain.TimeLine
@model JT.Domain.TimeLine.TimeLine

@{
    ViewData["Title"] = "Create";
}

    <div class="card mt-2">
      
        <div class="row justify-content-center">
            <div class="col-md-4">
                <form asp-action="Create" method="post">
                    <div asp-validation-summary="ModelOnly" class="text-danger"></div>
                    <div class="form-group">
                        <label asp-for="YearId" class="control-label"></label>
                        <select asp-for="YearId" class="form-control" asp-items="ViewBag.YearId"></select>
                    </div>
                    <div class="form-group">
                        <label asp-for="Months" class="control-label"></label>
                        <select asp-for="Months" class="form-control" asp-items="Html.GetEnumSelectList<Month>()">
                            <option value="">--请选择 @Html.DisplayNameFor(m => m.Months) --</option>
                        </select>
                        <span asp-validation-for="Months" class="text-danger"></span>
                    </div>
                    <div class="form-group">
                        <label asp-for="Content" class="control-label"></label>
                        <input asp-for="Content" class="form-control" />
                        <span asp-validation-for="Content" class="text-danger"></span>
                    </div>
                    <div class="form-group text-right">
                        <input type="submit" value="保存" class="btn btn-default" />
                    </div>
                </form>
                <div class="text-right">
                    <a asp-action="Index">返回</a>
                </div>
            </div>
        </div>

        
    </div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}